package com.wang.examplespringbootconsumer;

import com.wang.example.common.model.User;
import com.wang.example.common.service.UserService;
import com.wang.wangrpc.springboot.starter.annotation.RpcReference;
import org.springframework.stereotype.Service;

/**
 * @Author 王子旭
 * @Date 2025/04/06 17:58
 * @Version 1.0
 */
@Service
public class ExampleServiceImpl {

    @RpcReference
    private UserService userService;

    public void test() {
        User user = new User();
        user.setName("wang");
        user = userService.getUser(user);
        System.out.println(user.getName());
    }
}
